package test;


import lombok.AllArgsConstructor;
import lombok.Getter;
import test.rspenum.IResponseEnum;

/**
 * Created with IntelliJ IDEA.
 *
 * @ project name : example
 * @ Author: XuLeHuang
 * @ Date: 2022/12/8 14:06
 * @ Description:
 */
@AllArgsConstructor
public enum ResponseEnum implements IResponseEnum,BusinessExceptionAssert {

    /**
     * NullPointerException 空指针异常
     */
    NULLPOINTEREXCEPTION(0000, "空指针异常"),
    /**
     * DateBaseOperateException
     */
    DATEBASEOPERATEEXCEPTION(0001, "数据库操作异常");

    /**
     * 返回码
     */
    private int code;
    /**
     * 返回消息
     */
    private String message;

    @Override
    public int getCode() {
        return this.code;
    }

    @Override
    public String getMessage() {
        return this.message;
    }

}
